<?php
namespace appin\cms\validate;

use think\Validate;

class ArticleValidate extends Validate
{
    protected $rule = [
        'title' => 'require|min:1'
    ];

    protected $message = [
        'title.require' => '请输入标题',
        'title.min' => '请输入标题'
    ];

    protected $scene = [
        'savedata' => ['title']
    ];
}